package net.pimpas.persistence.serviceprovider;

import net.pimpas.core.serviceprovider.ServiceProviderFactory;
import net.pimpas.framework.PimpasFramework;

public class PersistenceServiceProviderFactoryImpl implements ServiceProviderFactory<PersistenceServiceProvider> {

	public static PersistenceServiceProvider getPersistenceServiceProvider(Object... params) {
		return new PersistenceServiceProviderFactoryImpl().getServiceProvider(params);
	}
	
	public PersistenceServiceProvider getServiceProvider(Object... params) {
		return (PersistenceServiceProvider) PimpasFramework.getCurrentInstance().getServiceProvider(PersistenceServiceProvider.class, params);
	}
}